Test Series - computer fundamental

Test Number 99/95

Q: A ______________ represents the need of information in the program without the presenting the details.
A. abstraction
B. polymorphism
C. implementation
D. class
Solution: Abstraction is a concept that involves hiding the details and giving only the necessary information to the user. It increases the power of a programming language.
Q: Abstraction combines the data and functions into a single unit called a class.
A. True
B. False
C. none
D. .
Solution: The statement is false. Data abstraction involves hiding the details and giving only the necessary information to the user.
Q: The process of forming a new class from an existing class.
A. Abstraction
B. Polymorphism
C. Inheritance
D. Implementation
Solution: The answer is inheritance. The base class is the parent class and the new class is called the child class.
Q: This concept allows routines to use data again at different times.
A. Abstraction
B. Polymorphism
C. Inheritance
D. Implementation
Solution: Polymorphism is a concept in OOP wherein different functions can be used again at different times.
Q: The ability for programmers to use the same written and debugged existing class.
A. Reusability
B. Design
C. Debugging
D. Implementation
Solution: The programmer can add features to the existing class. The programmer on further developing the application, and allowing users to achieve increased performance.
Q: A concept that combines data and functions into a single unit called class.
A. inheritance
B. encapsulation
C. polymorphism
D. abstraction
Solution: Encapsulation enables the important concept of data hiding possible. It combines data and functions into a single unit.
Q: __________ represents a particular instance of a class.
A. module
B. block
C. object
D. token
Solution: An object is an instance of the class. The data members are accessed with the help of objects.
Q: A basic unit of object-oriented programming.
A. module
B. block
C. object
D. token
Solution: In OOP, the basic unit is an object. Objects are identified by its unique name.
Q: A procedural programming follows ___________ approach.
A. top-down
B. bottom-up
C. left-right
D. right-left
Solution: A procedural programming follows top-down approach. The main focus is on the functions. It has a lot of global variable.
Q: A programming technique in which the focus is on doing things.
A. object oriented
B. procedural
C. logical
D. structural
Solution: In procedural programming, the focus is on doing things(functions). It follows top-down approach.

You Have Score    /10